import request from '@/utils/request'
const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'
const baseUrl2 = process.env.NODE_ENV === 'production' ? '' : '/run'

// const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

// export function getUserInfoApi() {
//   return  request({
//         url:baseUrl+ baseUrl + "/lclock/home",
//         methods: "get"
//       })
// }



export function getMenuApi() {
  return  request({
    url:baseUrl+"/lcmenu",
    method: "get"
  })
}
 

export function getUserInfoApi(params) {
  return  request({
        url: baseUrl2 + "/lclock/home",
        methods: "get",
        params:params
      })
}

export function lclockApi(params) {
  return  request({
        url: baseUrl2 + "/lclock",
        methods: "get",
        params:params
      })
}
